#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<fstream>
#include<string>
#include<cmath>
#include<cstdlib>
#include<ctime>

using namespace std;
#include"class template.cpp"


class per
{
public:

	string name;
	int id;

	per() {}
	per(string n, int i) : name(n), id(i) {}

};

void test()
{
	Myarray<per> arr(10);

	for (int i = 0; i < 5; i++)
	{
		arr.push_back(per("lisi", i));
	}

	cout << arr[4].id;
}

int main()
{
	test();
	return 0;
}